<?php 
    echo $this->doctype();
    echo "<html><head>";
	echo $this->headTitle( ' :: ' . SYS_NAME . ' :: '  ); 
	echo $this->headMeta()->appendHttpEquiv('Content-Type','text/html; charset=UTF-8')
						  ->appendHttpEquiv('Content-Language','en-US');
	echo $this->headLink()->appendStylesheet( PATH_CSS . 'jquery-ui-1.8.12.custom.css' )
						  ->appendStylesheet( PATH_CSS . 'mini.php?files=reset,common,form,standard,960.gs.fluid,simple-lists,block-lists,planning,table,calendars,wizard,gallery' )	
						  ->appendStylesheet( PATH_JS . 'libs/jquery/alerts/jquery.alerts.css' )
                                                  ->appendStylesheet( PATH_CSS . 'main.css' );
	echo $this->headScript()->appendFile( PATH_JS.'libs/voitech/config.js' )
                                ->appendFile( PATH_JS.'libs/php.default.min.js' )
                                ->appendFile( PATH_JS.'libs/mascara.js' )
						    ->appendFile( PATH_JS.'libs/jquery/jquery-1.5.1.min.js' )
					        ->appendFile( PATH_JS.'libs/jquery/jquery-ui-1.8.12.custom.min.js' )
					        ->appendFile( PATH_JS.'libs/jquery/jquery.blockUI.js' )	
					        ->appendFile( PATH_JS.'libs/jquery/jquery.PrintArea.js' )								        	        
					        ->appendFile( PATH_JS.'libs/jquery/alerts/jquery.alerts.js' )
                            ->appendFile( PATH_JS.'libs/voitech/util.js' )
					        ->appendFile( PATH_JS.'funcoes.js' )
					        ->appendFile( PATH_JS.'libs/voitech/action.js' )
					        //->appendFile( PATH_JS.'libs/admin/mini.php?files=html5,old-browsers,jquery.accessibleList,searchField,common,standard,jquery.tip,jquery.hashchange,jquery.contextMenu,jquery.modal,list' )
					        ->appendFile( PATH_JS.'libs/admin/jquery.dataTables.min.js' )
					        ->appendFile( PATH_JS.'libs/admin/jquery.datepick/jquery.datepick.min.js' );						  
	echo "</head>";
?>
	<body onload="window.focus();">
		<!-- The template uses conditional comments to add wrappers div for ie8 and ie7 - just add .ie or .ie7 prefix to your css selectors when needed -->
		<!--[if lt IE 9]><div class="ie"><![endif]-->
		<!--[if lt IE 8]><div class="ie7"><![endif]-->


		<!-- Begin header -->
		<header><div class="container_12">
			<p id="skin-name"><strong>SISGEF 1.0 </strong></p>
		</div></header>
		<nav id="main-nav"></nav>
		<!-- End header -->

		
		<!-- Content -->
		<article class="container_12">
			
	
					<div class="block-border">
						 <div class="block-content">
						 
					<!-- Inicio do ConteÃºdo do sistema -->	
							<h2><?php echo $this->tituloPagina?></h2>
								<div id='content_sys'>                                                                                                                                           
									<?php 	
                                                                            if (isset($this->messages)){
                                                                                echo "<center>";   
                                                                                foreach ($this->messages as $message){ 
                                                                                    echo $message,"<br />";
                                                                                }
                                                                                echo "</center>";
                                                                            }
									    echo $this->layout()->content;
									?>
								</div>
						
								<p></p>
								<div style='padding: 5px;'>
								    <?php 
								    	echo $this->formButton('btImprimirTela','Imprimir',array('style'=>'float:right'));
								    	echo $this->formButton('btnFecharTela','Fechar',array('style'=>'float:left'));
								    ?>
								</div>						
								<div class="clear"></div>
								<div class="clear"></div>
								<div class="clear"></div>
							
						</div>
					</div>
	
		<div class="clear"></div>
		</article>	
		
<script type="text/javascript">
	$().ready(function(){
		Util.addEventClear('<?php echo $this->tituloPagina?>');
	});
</script>		
					
		<div id="footer">
		
		<!-- begin separator --><hr /><!-- end separator -->
		<center>
			<div class="float_left">
				Copyright &copy; <?php echo ' SISGEF - Sistema de Gerenciamento de Estoque Farmacéutico, '.date('Y');?>. Todos os direitos reservados.
			</div>
			
			<div class="float_right">
				<b>Desenvolvido por </b><a href="http://www.voitech.com.br" target="_blank"><span style="color:orange;">VOITECH SISTEMAS. </span></a>
			</div>
			
			<div class="clear"></div>
		</center>	
		</div><!-- end footer -->						
						
						
	</body>
</html>
